/**
*@Author: QWP
*@Description: 导出模版设置相关接口
*@Date 2024-10-15 10:51
*/
import request from '@/http'

// 列表分页查询
export const page = async (data: object) => {
  return await request.post({
    url: '/bizz/perTemplates/getPage',
    data: data
  })
}

// 新增
export const add = async (data: object) => {
  return await request.post({
    url: '/bizz/perTemplates/insertBy',
    data: data,
  })
}

// 更新
export const update = async (data: object) => {
  return await request.put({
    url: '/bizz/perTemplates/updateBy',
    data: data
  })
}

// 删除
export const del = async (data: Array<any>) => {
  return await request.post({
    url: '/bizz/perTemplates/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}

// 单体查询
export const query = async (id: String) => {
  return await request.get({
    url: '/bizz/perTemplates/getInfo/' + id,
  })
}

// 导出
export const download = async (data: object) => {
  return await request.download1({
    url: '/bizz/perTemplates/export',
    data
  })
}
